package com.example.onlineeducation.mapper

import com.example.onlineeducation.data.entity.ChapterEntity
import com.example.onlineeducation.data.entity.DictEntity
import com.example.onlineeducation.data.entity.ExamEntity
import com.example.onlineeducation.data.entity.TopicEntity
import com.example.onlineeducation.data.json.ChapterJson
import com.example.onlineeducation.data.json.ExamJson
import com.example.onlineeducation.data.json.TopicJson

import com.yc.jetpacklib.extension.ycToNoEmpty

import com.yc.jetpacklib.mapper.IMapper

class ChapeterMapper : IMapper<ChapterJson, ChapterEntity> {
    override fun map(input: ChapterJson): ChapterEntity = ChapterEntity(
        input.type.ycToNoEmpty(),
        input.name.ycToNoEmpty(),
        input.content.ycToNoEmpty(),
        input.mediaUrl,
        input.id

    )
}

